package com.google.gwt.maps.v3.client.streetview;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.maps.v3.client.streetview.impl.StreetViewPovImpl;

public class StreetViewPov implements HasStreetViewPov {

  private JavaScriptObject jso;
  
  public static final StreetViewPovImpl impl = StreetViewPovImpl.impl;
  
  public StreetViewPov(JavaScriptObject jso) {
    this.jso = jso;
  }
  
  public StreetViewPov() {
    this(impl.construct());
  }

  @Override
  public double getHeading() {
    return impl.getHeading(jso);
  }

  @Override
  public double getPitch() {
    return impl.getPitch(jso);
  }

  @Override
  public int getZoom() {
    return impl.getZoom(jso);
  }

  @Override
  public void setHeading(double heading) {
    impl.setHeading(jso, heading);
  }

  @Override
  public void setPitch(double pitch) {
    impl.setPitch(jso, pitch);
  }

  @Override
  public void setZoom(int zoom) {
    impl.setZoom(jso, zoom);
  }

  @Override
  public JavaScriptObject getJso() {
    return jso;
  }

}
